<?php
/* Smarty version 3.1.29, created on 2016-09-30 05:57:53
  from "D:\php\www\tpl\admin\upload.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57edfee199d6f4_97889757',
  'file_dependency' => 
  array (
    '37ce16e62e4c037938ef51b27b6beb4e6b99e330' => 
    array (
      0 => 'D:\\php\\www\\tpl\\admin\\upload.html',
      1 => 1475214072,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_57edfee199d6f4_97889757 ($_smarty_tpl) {
?>
<!DOCTYPE html>
<html>
   <head>
   	  <meta charset="utf-8"/>
   	  <meta name="renderer" content="webkit" />
	  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>车辆管理系统</title>
      <link href="tpl/admin/c/bootstrap.css" rel="stylesheet">
  	  <link href="tpl/admin/c/style.css" rel="stylesheet">
		<!--[if lt IE 9]>
         <?php echo '<script'; ?>
 src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"><?php echo '</script'; ?>
>
         <?php echo '<script'; ?>
 src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"><?php echo '</script'; ?>
>
      <![endif]-->
		
	</head>
	<style type="text/css">
		
	</style>
	<body>
	<!--头部-->	
	<div class="header">
		<div class="container">
			<h3 class="fl">IC卡信息管理</h3>
			<p class="fr">欢迎你，<span>My-Left</span>&ensp;&ensp;&ensp;<a href="#">退出</a></p>
		</div>
	</div>	
	<div class="head"></div>
	<!--内容-->
	<div class="IC-card">
		<div class="container">
			<div class="upload">
			<div class="upload">
				<h3>上传车辆信息</h3>
				<div class="info">
					
						<ul class="thumbnail" id="files">
							
						</ul>
						<div class="text-right">
							<form> 
								<!--<button class="btn btn-danger">移出</button>-->
								<span class="btn btn-success">上传</span>
								<label for="file" >
									<span class="btn btn-info">选择</span>
									<input type="file" class="btn btn-success" id="file" multiple >
									
								</label>
								
							</form>
						</div>
					
				</div>
			</div>
		</div>
		</div>
	</div>
	<!--尾部-->
	<div class="footer">
		<p>加油卡管理，替换车辆，高峰期车辆管理，办理车辆税</p>
		<p>分析，开票控制，加油卡管理，替换车辆，高峰期车辆管理，办理车辆税</p>
	</div>	
	<?php echo '<script'; ?>
 src="//cdn.bootcss.com/jquery/1.7.1/jquery.min.js" type="text/javascript"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="tpl/admin/c/ss.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript">
		$(function () {
			
			 $(".thumbnail").delegate("span.dge", "click", function(){
            	$(this).parents("li").remove();
            })

			$("#file").uploadPreview({ 
				Obj: "files" ,
				Callback:function(data){
					
					$("#files input").each(function(i) {
						data.append('length', $("#files input").length);
					    data.append('note'+i, $("#files input").eq(i).val());
					});


		//data={lengtht:上传图片的数量，note+i：对应的注释， file+i：图片流}				

					$.ajax({
					  url: "admin.php?c=admin&m=cs",
					  type: "POST",
					  data: data,
					  cache: false,
					  processData: false,  // 告诉jQuery不要去处理发送的数据
					  contentType: false,   // 告诉jQuery不要去设置Content-Type请求头
					  beforeSend: function(e) {             
						    console.log(e+"上传中。。")       
					  },         
					  success: function(res) {             
						    console.log(JSON.parse(res))             
					  },         
					  error: function(res) { 
						    console.log(res+"失败");         
					  }
					});
				}
			});
			 
           
		});
	<?php echo '</script'; ?>
>
	</body>

</html><?php }
}
